package com.xj.common.bussiness.machinery.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE;

/**
 * <p>
 * 
 * </p>
 *
 * @author Hmemb
 * @since 2017-11-18
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("tb_machinery_info")
public class TbMachineryInfo extends Model<TbMachineryInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 机主名称
     */
	@TableField(value="owner_name")
	private String ownerName;
    /**
     * 机主身份证号
     */
	@TableField(value="identity_num")
	private String identityNum;
    /**
     * 购置时间
     */
	@DateTimeFormat(iso = DATE)
	@TableField(value="buy_date")
	private Date buyDate;
    /**
     * 铭牌号
     */
	@TableField(value="plate_num")
	private String plateNum;
    /**
     * 大架子号
     */
	@TableField(value="big_shelf_num")
	private String bigShelfNum;
    /**
     * 发动机铭牌号
     */
	@TableField(value="engine_plate_num")
	private String enginePlateNum;
    /**
     * 液压泵铭牌
     */
	@TableField(value="hydraulic_plate_num")
	private String hydraulicPlateNum;
    /**
     * 备注信息
     */
	@TableField(value="remark")
	private String remark;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getIdentityNum() {
		return identityNum;
	}

	public void setIdentityNum(String identityNum) {
		this.identityNum = identityNum;
	}

	public Date getBuyDate() {
		return buyDate;
	}

	public void setBuyDate(Date buyDate) {
		this.buyDate = buyDate;
	}

	public String getPlateNum() {
		return plateNum;
	}

	public void setPlateNum(String plateNum) {
		this.plateNum = plateNum;
	}

	public String getBigShelfNum() {
		return bigShelfNum;
	}

	public void setBigShelfNum(String bigShelfNum) {
		this.bigShelfNum = bigShelfNum;
	}

	public String getEnginePlateNum() {
		return enginePlateNum;
	}

	public void setEnginePlateNum(String enginePlateNum) {
		this.enginePlateNum = enginePlateNum;
	}

	public String getHydraulicPlateNum() {
		return hydraulicPlateNum;
	}

	public void setHydraulicPlateNum(String hydraulicPlateNum) {
		this.hydraulicPlateNum = hydraulicPlateNum;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
